package com.hongguan.oms.service.supervise;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;
import com.hongguan.oms.service.BaseService;

/**
 * BsfaultMaint Service
 * 
 * @author Maping
 * 
 */
@SuppressWarnings("unchecked")
@Service
public class JtfaultMaintService extends BaseService {

	public JtfaultMaintService() {
		this.namespace = "T_JTFAULT_MAINT";
	}

	public List searchMaintBy(Map param) {
		return this.getSqlMapClientTemplate().queryForList(
				this.getStatementName("searchMaintBy"), param);
	}

	public Long countMaintBy(Map param) {
		return (Long) this.getSqlMapClientTemplate().queryForObject(
				this.getStatementName("countMaintBy"), param);
	}

	public HashMap searchById(Map param) {
		return (HashMap) this.getSqlMapClientTemplate().queryForObject(
				this.getStatementName("searchById"), param);
	}

	public void addMaint(Map param) {
		this.getSqlMapClientTemplate().insert(
				this.getStatementName("addMaint"), param);
	}
}
